<template>
  <div>
    <h1>子应用 -- Vue@{{version}}</h1>
    <button @click="testAxios">测试axios请求</button>
  </div>
</template>

<script>
import axios from 'axios';
import Vue from 'vue'

export default {
  name: 'page1',
  data () {
    return {
      version: Vue.version,
    }
  },
  components: {

  },
  methods: {
    testAxios() {
      let url = '/api/crm-server/adminActivity/adminPageList?pageSize=10&currentPage=1&total=5&onlyMe=false&name=&status=&departmentId=&startTime=&endTime=&createUserId=&responsibleId=&typeId=&provinceId=&cityId=&areaId=&streetId=';
      
      if (process.env.NODE_ENV !== "development") url = `https://szhgg.ifuhua.com.cn${url}`

      console.log(process.env)
      axios.get(url, {
        headers: {
          Authorization: 'Bearer dd6cb770-3085-4fb1-96b9-22e099531d0b',
        }
      })
    },
  },
}
</script>

<style>

</style>
